#include <iostream>
#include <sstream>
#include <boost/progress.hpp>
using namespace std;
int main() {

    long int a;
    //离开{}对象被析构输出时间给ss流，ss输出为字符串
    stringstream ss;
    {
        boost::progress_timer t(ss);
        for(int i=0;i<100000000;i++)
            a += i;
    }
    cout<<ss.str();
    return 0;
}